package com.test.demo.provider.service;

import java.util.concurrent.CompletableFuture;

public interface DemoService {
    String sayHello(String msg);

    default String sayHello(String msg,DemoServiceListener demoServiceListener){
        return null;
    }

    default CompletableFuture<String> asyncSayHello(String msg){
        return CompletableFuture.completedFuture(sayHello(msg));
    }
}
